package com.hxd.mall.module.startup

import com.hxd.mall.base.IBaseView
import com.hxd.mall.network.base.BaseRequest
import com.hxd.mall.network.service.ManagerFunctionApi.mIMeFunctionApi
import javax.inject.Inject

class WelcomePresenter @Inject constructor(var mView: IBaseView) : IWelcomePresenter {

    override fun getData(isRefresh: Boolean) {
        BaseRequest.request(mIMeFunctionApi.updateApp(), {
            //            when (it.status) {
//                "update" -> HxdConstantsNet.updateInfo = it
//                else -> HxdConstantsNet.updateInfo = null
//            }
        }, {
            //            HxdConstantsNet.updateInfo = null
        })
    }

    override fun getPic() {
        /*BaseRequest.request(mIMeFunctionApi.launchPic, {
            mView.netSuccess(it.url)
        }, {
        })*/
    }

    /**
     * 首次激活
     */
    override fun boot() {
        /*BaseRequest.request(mIMeFunctionApi.boot(if (TextUtils.isEmpty(Push_Id)) getPushID() else Push_Id), {

        }, {
        })*/
    }
}